/* 加载状态 */
/* 加载相关样式 */
.coach-loading-spinner {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  width: 20px;
  height: 20px;
  border: 2px solid #e6e6e6;
  border-top: 2px solid #1890ff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.coach-loading-spinner.small {
  width: 16px;
  height: 16px;
  border-width: 1px;
  margin: 20rpx auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


/* 教练头部信息 */
.coach-header-section {
  width: 100%;
  position: relative;
  height: 360px;
  overflow: hidden;
}

.coach-header-image {
  width: 100%;
  height: 100%;
  position: relative;
}

.coach-header-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.coach-header-avatar {
  position: absolute;
  bottom: 20px;
  left: 20px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.8);
  background-color: rgba(255, 255, 255, 0.8);
  z-index: 10;
}

.coach-header-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99;
  width: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  padding: 20px;
  padding-right: 30px; /* 增加右侧内边距，使按钮向左移动 */
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-left: 10px;
  margin-right: 10px;
}

.coach-header-score {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-wrap: nowrap;
  width: auto;
  min-width: 240rpx;
}


.coach-header-status {
  padding: 8rpx 24rpx;
  border-radius: 24rpx;
  font-size: 24rpx;
  color: #fff;
  margin-right: 10px;
}

.coach-status-full {
  background-color: #ff4d4f;
}

.coach-status-available {
  background-color: #52c41a;
}

/* 内容滚动视图 */
.coach-content-scroll-view {
  width: 100%;
  min-height: 100vh;
  margin-bottom: 32rpx;
}

.coach-info-section {
  display: flex;
  align-items: center;
  flex-direction: column;
  width: 100%;
  padding: 0 24rpx;
}

.coach-info-card {
  background-color: #fff;
  border-radius: 16rpx;
  padding: 32rpx;
  margin-bottom: 24rpx;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  width: 100%;
}

/* 所有卡片通用样式 */
.coach-pickup-info-card,
.coach-contact-card,
.coach-honor-wall-card,
.coach-prices-card,
.coach-comments-card {
  width: 100%;
  box-sizing: border-box;
}

.coach-info-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.coach-profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 4px solid #1890ff;
  margin-bottom: 15px;
  overflow: hidden;
}

.coach-avatar-image {
  width: 100%;
  height: 100%;
}

.coach-basic-info {
  flex: 1;
}

.coach-name-row {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  justify-content: center;
}

.coach-name {
  font-size: 36rpx;
  font-weight: bold;
  color: #333;
  margin-right: 16rpx;
}

.coach-details-tags {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 16rpx;
  gap: 16rpx;
}

.coach-licenses {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16rpx;
}

.coach-certificate-button {
  font-size: 24rpx;
  color: #1890ff;
  margin-left: 15px;
  text-decoration: underline;
}

/* 接送信息卡片 */
.coach-pickup-info-card {
  background-color: #fff;
  border-radius: 16rpx;
  padding: 32rpx;
  margin-bottom: 24rpx;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.coach-card-title {
  font-size: 40rpx;
  font-weight: bold;
  color: #333;
  margin-bottom: 24rpx;
  display: flex;
  align-items: center;
}

.coach-card-icon {
  margin-right: 12rpx;
}

.coach-pickup-tags {
  display: flex;
  flex-wrap: wrap;
}

/* 联系方式卡片 */
.coach-contact-card {
  background-color: #fff;
  border-radius: 16rpx;
  padding: 32rpx;
  margin-bottom: 24rpx;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.coach-contact-buttons {
  display: flex;
}

.coach-consult-button,
.coach-call-button {
  flex: 1;
  padding: 20rpx;
  text-align: center;
  border-radius: 8rpx;
  font-size: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.coach-consult-button {
  background-color: #07c160;
  color: #fff;
  margin-right: 16rpx;
}

.coach-call-button {
  background-color: #1890ff;
  color: #fff;
  margin-left: 16rpx;
}

.coach-button-icon {
  margin-right: 12rpx;
}

/* 荣誉墙卡片 */
.coach-honor-wall-card {
  background-color: #fff;
  border-radius: 16rpx;
  padding: 32rpx;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.coach-honor-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24rpx;
  margin-bottom: 32rpx;
}

.coach-honor-stat-item {
  display: flex;
  justify-content: space-between;
  padding: 16rpx 0;
  border-bottom: 1px solid #f0f0f0;
}

.coach-honor-stat-item:last-child {
  border-bottom: none;
}

.coach-honor-stat-label {
  font-size: 24rpx;
  color: #666;
}

.coach-honor-images-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16rpx;
}

.coach-honor-image-item {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8rpx;
  overflow: hidden;
}

.coach-honor-image {
  width: 100%;
  height: 100%;
}

/* 右侧内容区域 */
.coach-right-content-section {
  width: 100%;
}

/* 价格套餐卡片 */
.coach-prices-card {
  background-color: #fff;
  border-radius: 16rpx;
  padding: 32rpx;
  margin-bottom: 24rpx;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* 根容器布局 */
.coach-detail-container {
  width: 100%;
  min-height: 100vh;
  background-color: #f5f5f5;
}

/* 主要内容区域 */
.coach-main-content {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.coach-prices-list {
  display: flex;
  flex-direction: column;
  gap: 24rpx;
}

.coach-price-card {
  padding: 32rpx;
  border: 2rpx solid #f0f0f0;
  border-radius: 16rpx;
  background-color: #fff;
}

.coach-price-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24rpx;
}

.coach-price-card-title {
  font-size: 28rpx;
  font-weight: bold;
  color: #333;
}

.coach-price-value {
  font-size: 36rpx;
  font-weight: bold;
  color: #ff4d4f;
}

.coach-price-card-details {
  margin-bottom: 32rpx;
}

.coach-price-detail-item {
  font-size: 24rpx;
  color: #666;
  margin-bottom: 12rpx;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
}

.coach-price-detail-label {
  color: #999;
}

.coach-price-detail-value {
  color: #333;
  font-weight: 600;
}

/* 评论卡片 */
.coach-comments-card {
  background-color: #fff;
  border-radius: 16rpx;
  padding: 32rpx;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.coach-comments-loading {
  display: flex;
  justify-content: center;
  padding: 40rpx;
}

.coach-comments-list {
  display: flex;
  flex-direction: column;
}

.coach-comment-wrapper {
  padding: 32rpx 0;
  border-bottom: 1px solid #f0f0f0;
}

.coach-comment-wrapper:last-child {
  border-bottom: none;
}

.coach-comment-item {
  width: 100%;
}

.coach-comment-header {
  display: flex;
  align-items: center;
  margin-bottom: 24rpx;
}

.coach-commenter-avatar {
  width: 80rpx;
  height: 80rpx;
  border-radius: 50%;
  margin-right: 24rpx;
}

.coach-commenter-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.coach-commenter-name {
  font-size: 28rpx;
  color: #333;
  margin-bottom: 8rpx;
}

.coach-comment-time {
  font-size: 24rpx;
  color: #999;
}

.coach-comment-score {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.coach-comment-content {
  font-size: 28rpx;
  color: #333;
  line-height: 1.5;
  margin-bottom: 24rpx;
}

.coach-comment-attachments {
  display: flex;
  margin-bottom: 24rpx;
  flex-wrap: wrap;
}

.coach-attachment-image {
  width: 160rpx;
  height: 160rpx;
  margin-right: 16rpx;
  margin-bottom: 16rpx;
  border-radius: 8rpx;
}

.coach-comment-actions {
    display: flex;
    align-items: center;
    gap: 24rpx;
  }

  .coach-like-button {
    display: flex;
    align-items: center;
    padding: 8rpx 16rpx;
    border-radius: 4rpx;
  }

  .coach-like-icon {
    font-size: 32rpx;
    margin-right: 8rpx;
    color: #999;
  }

  .coach-like-icon.liked {
    color: #ff4d4f;
  }

  .coach-like-count {
    font-size: 24rpx;
    color: #999;
  }

  .coach-reply-button {
    display: flex;
    align-items: center;
    padding: 8rpx 16rpx;
    border-radius: 4rpx;
  }

  .coach-reply-icon {
    font-size: 32rpx;
    margin-right: 8rpx;
    color: #999;
  }

  .coach-reply-text {
    font-size: 24rpx;
    color: #999;
  }

  .coach-edit-button {
    display: flex;
    align-items: center;
    padding: 8rpx 16rpx;
    border-radius: 4rpx;
  }

  .coach-delete-button {
    display: flex;
    align-items: center;
    padding: 8rpx 16rpx;
    border-radius: 4rpx;
  }

  .coach-toggle-replies-button {
    margin-top: 10rpx;
    margin-bottom: 10rpx;
    color: #1890ff;
  }

  /* 回复输入框样式 */
  .coach-reply-input-container {
    margin-top: 24rpx;
    padding: 24rpx;
    background-color: #f5f5f5;
    border-radius: 12rpx;
  }

  .coach-reply-to-info {
    margin-bottom: 16rpx;
  }

  .coach-reply-to-text {
    font-size: 24rpx;
    color: #666;
  }

  .coach-edit-info {
    margin-bottom: 16rpx;
  }

  .coach-edit-text {
    font-size: 24rpx;
    color: #666;
  }

  .coach-reply-textarea {
    width: 100%;
    min-height: 120rpx;
    padding: 16rpx;
    background-color: #fff;
    border: 2rpx solid #e8e8e8;
    border-radius: 8rpx;
    font-size: 28rpx;
    color: #333;
    resize: none;
    box-sizing: border-box;
  }

  .coach-reply-input-actions {
    display: flex;
    justify-content: flex-end;
    gap: 16rpx;
    margin-top: 16rpx;
  }

  .coach-cancel-reply-button {
    padding: 12rpx 32rpx;
    background-color: #fff;
    border: 2rpx solid #d9d9d9;
    border-radius: 6rpx;
  }

  .coach-cancel-text {
    font-size: 26rpx;
    color: #666;
  }

  .coach-submit-reply-button {
    padding: 12rpx 32rpx;
    background-color: #1890ff;
    border: none;
    border-radius: 6rpx;
  }

  .coach-submit-reply-button:disabled {
    background-color: #d9d9d9;
  }

  .coach-submit-text {
    font-size: 26rpx;
    color: #fff;
  }

  .coach-submitting-container {
    display: flex;
    align-items: center;
    gap: 8rpx;
  }

  .coach-spinner-icon {
    font-size: 20rpx;
    color: #fff;
  }

  .coach-animate-spin {
    animation: spin 1s linear infinite;
  }

  .coach-loading-more {
    display: flex;
    justify-content: center;
    padding: 32rpx;
  }

  .coach-no-more-comments {
    text-align: center;
    padding: 40rpx;
  }

  .coach-no-more-text {
    font-size: 24rpx;
    color: #999;
}

.coach-no-comments {
  text-align: center;
  padding: 80rpx;
}

.coach-no-comments-text {
  font-size: 28rpx;
  color: #999;
}

/* 执照图片模态框 */
.coach-certificate-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.coach-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
}

.coach-modal-content {
  position: relative;
  width: 80%;
  max-height: 80%;
  background-color: #fff;
  border-radius: 16rpx;
  overflow: hidden;
}

.coach-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32rpx;
  border-bottom: 1px solid #f0f0f0;
}

.coach-modal-title {
  font-size: 32rpx;
  font-weight: bold;
  color: #333;
}

.coach-modal-close {
  padding: 8rpx;
}

.coach-close-icon {
  font-size: 40rpx;
  color: #999;
}

.coach-modal-body {
  padding: 32rpx;
  display: flex;
  justify-content: center;
  align-items: center;
  max-height: 400rpx;
}

.coach-certificate-image {
  width: 100%;
  max-height: 360rpx;
}

.coach-no-certificate {
  text-align: center;
  padding: 80rpx;
}

.coach-no-certificate-text {
  font-size: 28rpx;
  color: #999;
}

/* 嵌套回复相关样式 */
.coach-reply-wrapper {
  margin-left: 40rpx;
  position: relative;
}

.coach-reply-wrapper::before {
  content: '';
  position: absolute;
  left: 40rpx;
  top: 0;
  bottom: 0;
  width: 2rpx;
  background-color: #f0f0f0;
}

.coach-nested-toggle-container {
  margin-left: 40rpx;
}

.coach-toggle-nested-replies-button {
  color: #1890ff;
}

.coach-toggle-replies-loading,
.coach-toggle-replies-content {
  display: flex;
  align-items: center;
  gap: 8rpx;
}

.coach-toggle-icon {
  font-size: 16rpx;
}

.coach-toggle-replies-text {
  font-size: 24rpx;
}

.coach-nested-replies-wrapper {
  margin-left: 40rpx;
}

.coach-nested-replies-container {
  margin-left: 40rpx;
}

.coach-nested-reply-item {
  margin-top: 24rpx;
  padding-bottom: 24rpx;
  border-bottom: 1px solid #f0f0f0;
}

.coach-nested-reply-header {
  display: flex;
  align-items: center;
  margin-bottom: 16rpx;
}

.coach-nested-reply-avatar {
  width: 60rpx;
  height: 60rpx;
  border-radius: 50%;
  margin-right: 16rpx;
}

.coach-nested-reply-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.coach-nested-reply-username {
  font-size: 24rpx;
  color: #333;
  margin-bottom: 4rpx;
}

.coach-nested-reply-time {
  font-size: 20rpx;
  color: #999;
}

.coach-nested-reply-content {
  font-size: 26rpx;
  color: #333;
  line-height: 1.5;
  margin-bottom: 16rpx;
  margin-left: 76rpx;
}

.coach-nested-reply-attachments {
  display: flex;
  margin-bottom: 16rpx;
  margin-left: 76rpx;
  flex-wrap: wrap;
}

.coach-nested-attachment-image {
  width: 120rpx;
  height: 120rpx;
  margin-right: 12rpx;
  margin-bottom: 12rpx;
  border-radius: 8rpx;
}

.coach-nested-reply-actions {
  display: flex;
  align-items: center;
  gap: 16rpx;
  margin-left: 76rpx;
}

.coach-collapse-nested-replies-button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16rpx;
  color: #1890ff;
  margin-left: 76rpx;
}